package com.yexiong.server.dao.impl;

import java.util.Date;
import java.util.List;

import com.common.entity.CheckRecord;
import com.yexiong.dao.ICheckRecordDao;
import com.yexiong.dao.impl.CheckRecordDaoImpl;
import com.yexiong.server.dao.ICheckServer;

public class CheckServerImpl implements ICheckServer{
	private ICheckRecordDao ICheckRecordDao=new CheckRecordDaoImpl();
	@Override
	public int insert(CheckRecord checkRecord) {
		int result=0;
		result=ICheckRecordDao.insert(checkRecord);
		return result;
	}

	@Override
	public List<CheckRecord> query(String condition, String startTime, String endTime) {
		return ICheckRecordDao.query(condition, startTime, endTime);
	}

	@Override
	public int delete(String date,int stuId) {
		return ICheckRecordDao.delete(date,stuId);
	}

	@Override
	public int getId(String date, int stuId) {
		return ICheckRecordDao.getId(date, stuId);
	}

	@Override
	public boolean findIsDateIn(int stuId, String date) {
		return ICheckRecordDao.findIsDateIn(stuId, date);
	}

	@Override
	public int updateDate(Date start, Date end, int id) {
		return ICheckRecordDao.updateDate(start, end, id);
	}

}
